var path = require('path')
function resolve (dir) {
  console.log(__dirname)
  return path.join(__dirname, dir)
}

module.exports = {
  baseUrl: process.env.NODE_ENV === 'production' ? './'  : '/',
  chainWebpack: (config) => {
        config.resolve.alias
            .set('styles',resolve('src/assets/styles'))
            .set('js',resolve('src/assets/js'))
    }
}
